home *** CD-ROM | disk | FTP | other *** search
- from JascApp import *
-
- def ScriptProperties():
- return {
- 'Author': 'Kris Zaklika',
- 'Copyright': 'Copyright (C) 2002-2003, Jasc Software Inc., All Rights Reserved.',
- 'Description': 'A night vision effect',
- 'Host': 'Paint Shop Pro',
- 'Host Version': '8.00'
- }
-
- def Preset_MagnifyingLens():
- return {
- 'Bound': (0.02625,0.0233333,0.98125,0.976667),
- 'Darkness': 100,
- 'Defocus': -1,
- 'Frame': {
- 'FrameColor': (255,153,153),
- 'Material': App.Constants.LensFrameMaterial.Gold,
- 'Style': App.Constants.LensFrameShape.RoundedSquare,
- 'Thickness': 4
- },
- 'Illumination': {
- 'LightList': [{
- 'LightColor': (0,190,45),
- 'LightDirection': (0.574062,0.700348,-0.424224),
- 'HighlightSize': 27
- },{
- 'LightColor': (104,114,105),
- 'LightDirection': (0.01735,0.01735,-0.999699),
- 'HighlightSize': 0
- },{
- 'LightColor': (64,64,64),
- 'LightDirection': (0.0573503,0.0173503,0.998203),
- 'HighlightSize': 43
- }],
- 'MaxAmbience': 100,
- 'MinAmbience': 0
- },
- 'LensSurface': {
- 'EnvironmentMap': {
- 'Active': App.Constants.Boolean.false
- },
- 'Gloss': 100,
- 'Magnification': 19,
- 'LensMaterial': {
- 'Color': (0,114,0),
- 'Pattern': None,
- 'Gradient': None,
- 'Texture': None
- },
- 'LensOpacity': 70,
- 'Refraction': 0,
- 'ShapeType': App.Constants.LensShape.VCylindrical,
- 'Shininess': 78
- }
- }
-
- def Do(Environment):
- App.Do( Environment, 'MagnifyingLens', Preset_MagnifyingLens())
-
-